package org.proxycine.gestsalles.services;

import java.util.List;

import org.proxycine.gestsalles.model.dao.CinemaDao;
import org.proxycine.gestsalles.model.entities.Cinema;

	
public final class CinemaService {
		
		private static CinemaService instance;
		
		private CinemaService() {
			instance = this;
		}
		
		public static CinemaService getInstance() {
			if(instance == null)
				instance = new CinemaService();
			
			return instance;
		}
					
		public List<Cinema> getAllCinemas() {
			return CinemaDao.getInstance().getAllCinemas();
		}

		public Cinema getCinema(int id) {
			return CinemaDao.getInstance().getCinema(id);
		}
		
		public Cinema getCinemaOf(String loginGerant) {
			return CinemaDao.getInstance().getCinemaOf(loginGerant);
		}
				
}
